<?php
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'TEMPLATEPATH', dirname(__FILE__) );
/*
-----------------------------------------
Touch of Soul - October 2009 Shape 5 Club Template
-----------------------------------------
Site:      www.shape5.com
Email:     contact@shape5.com
@license:  Copyrighted Commercial Software
@copyright (C) 2009 Shape 5

*/

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<?php

//
///////////////////////////////////////////////////////////////////////////////////////

	
		
		$s5_bg = $this->params->get ("xml_s5_bg");
		$s5_highlight_1 = $this->params->get ("xml_s5_highlight_1");
		$s5_highlight_2 = $this->params->get ("xml_s5_highlight_2");
		$s5_body_width = $this->params->get ("xml_s5_body_width");
		$s5_right_width = $this->params->get ("xml_s5_right_width");
		$s5_left_width = $this->params->get ("xml_s5_left_width");
		$s5_inset_width = $this->params->get ("xml_s5_inset_width");
		$s5_menu = $this->params->get ("xml_s5_menu");      
		$s5_show_frontpage = $this->params->get ("xml_s5_frontpage");  
		$s5_urlforSEO = $this->params->get ("xml_s5_seourl");
		$s5_lytebox = $this->params->get ("xml_s5_lytebox");  
		$s5_tooltips = $this->params->get ("xml_s5_tooltips"); 
		


// It is recommended that you do not edit below this line.
///////////////////////////////////////////////////////////////////////////////////////


if (($s5_menu  == "1") || ($s5_menu  == "2") || ($s5_menu  == "3")){ 
require( TEMPLATEPATH.DS."s5_no_moo_menu.php");
}
else if ($s5_menu  == "4")  {
require( TEMPLATEPATH.DS."s5_suckerfish.php");
}
$menu_name = $this->params->get ("xml_menuname");

if ($s5_urlforSEO  == ""){ 
$LiveSiteUrl = JURI::base();}
if ($s5_urlforSEO  != ""){ 
$LiveSiteUrl = "$s5_urlforSEO/";}

$br = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser.

$browser = "other";

if(ereg("msie 6", $br)) {
$browser = "ie6";
} 

else if(ereg("msie 7", $br)) {
$browser = "ie7";
} 

else if(ereg("msie 8", $br)) {
$browser = "ie8";
} 

// Module size calculations

if(!$this->countModules('inset')) {
$s5_inset_width = "0";	
}

if(!$this->countModules('right')) {
$s5_right_width = "0";	
}

if(!$this->countModules('left')) {
$s5_left_width = "0";	
}

if ($this->countModules("above_body_3") && $this->countModules("above_body_4") && $this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="24.9%"; }
else if (!$this->countModules("above_body_3") && $this->countModules("above_body_4") && $this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="33.3%"; }
else if ($this->countModules("above_body_3") && !$this->countModules("above_body_4") && $this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="33.3%"; }
else if ($this->countModules("above_body_3") && $this->countModules("above_body_4") && !$this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="33.3%"; }
else if ($this->countModules("above_body_3") && $this->countModules("above_body_4") && $this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="33.3%"; }
else if (!$this->countModules("above_body_3") && !$this->countModules("above_body_4") && $this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="49.9%"; }
else if (!$this->countModules("above_body_3") && $this->countModules("above_body_4") && !$this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="49.9%"; }
else if (!$this->countModules("above_body_3") && $this->countModules("above_body_4") && $this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="49.9%"; }
else if ($this->countModules("above_body_3") && !$this->countModules("above_body_4") && !$this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="49.9%"; }
else if ($this->countModules("above_body_3") && !$this->countModules("above_body_4") && $this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="49.9%"; }
else if ($this->countModules("above_body_3") && $this->countModules("above_body_4") && !$this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="49.9%"; }
else if (!$this->countModules("above_body_3") && !$this->countModules("above_body_4") && !$this->countModules("above_body_5") && $this->countModules("above_body_6")) { $top_row="100%"; }
else if (!$this->countModules("above_body_3") && $this->countModules("above_body_4") && !$this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="100%"; }
else if (!$this->countModules("above_body_3") && !$this->countModules("above_body_4") && $this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="100%"; }
else if ($this->countModules("above_body_3") && !$this->countModules("above_body_4") && !$this->countModules("above_body_5") && !$this->countModules("above_body_6")) { $top_row="100%"; }

if ($this->countModules("below_body_2") && $this->countModules("below_body_3") && $this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="24.9%"; }
else if (!$this->countModules("below_body_2") && $this->countModules("below_body_3") && $this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="33.3%"; }
else if ($this->countModules("below_body_2") && !$this->countModules("below_body_3") && $this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="33.3%"; }
else if ($this->countModules("below_body_2") && $this->countModules("below_body_3") && !$this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="33.3%"; }
else if ($this->countModules("below_body_2") && $this->countModules("below_body_3") && $this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="33.3%"; }
else if (!$this->countModules("below_body_2") && !$this->countModules("below_body_3") && $this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if (!$this->countModules("below_body_2") && $this->countModules("below_body_3") && !$this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if (!$this->countModules("below_body_2") && $this->countModules("below_body_3") && $this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if ($this->countModules("below_body_2") && !$this->countModules("below_body_3") && !$this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if ($this->countModules("below_body_2") && !$this->countModules("below_body_3") && $this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if ($this->countModules("below_body_2") && $this->countModules("below_body_3") && !$this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="49.9%"; }
else if (!$this->countModules("below_body_2") && !$this->countModules("below_body_3") && !$this->countModules("below_body_4") && $this->countModules("below_body_5")) { $bot_row="100%"; }
else if (!$this->countModules("below_body_2") && $this->countModules("below_body_3") && !$this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="100%"; }
else if (!$this->countModules("below_body_2") && !$this->countModules("below_body_3") && $this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="100%"; }
else if ($this->countModules("below_body_2") && !$this->countModules("below_body_3") && !$this->countModules("below_body_4") && !$this->countModules("below_body_5")) { $bot_row="100%"; }


?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link rel="stylesheet" href="<?php echo $LiveSiteUrl;?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $LiveSiteUrl;?>/templates/system/css/general.css" type="text/css" />

<link href="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/css/s5_suckerfish.css" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/css/editor.css" rel="stylesheet" type="text/css" media="screen" />

<link href="/touch_of_soul/templates/touch_of_soul/favicon.ico" rel="shortcut icon" type="image/x-icon" />



<?php 
  $s5_domain = $_SERVER['HTTP_HOST']; $s5_path = $_SERVER['SCRIPT_NAME']; $s5_queryString = $_SERVER['QUERY_STRING']; $s5_url = "http://" . $s5_domain . $_SERVER['REQUEST_URI']; $s5_check_vm = strrpos($s5_url,"virtuemart");
  if ($s5_lytebox  == "yes") { 
  if ($s5_check_vm == "") {
?>
		<link rel="stylesheet" href="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/css/lytebox.css" type="text/css" media="screen" />
		<script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/lytebox.js"></script>
<?php } } ?>


<?php if($browser == "ie6" || $browser == "ie7" && $s5_menu != "5") { ?>

<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/IEsuckerfish.js"></script>

<?php } ?>

<style type="text/css"> 

<?php if ($browser == "ie6") { ?>

* html #s5_logo_wrap {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_logo.png', sizingmethod='crop');}
}

* html #s5_left_shadow {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_left_shadow.png', sizingmethod='scale');}
}

* html #s5_right_shadow {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_right_shadow.png', sizingmethod='scale');}
}

* html #s5_bread_l {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_breadcrumb_l.png', sizingmethod='crop');}
}

* html #s5_bread_r {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_breadcrumb_r.png', sizingmethod='crop');}
}

* html #s5_bread_m {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_breadcrumb_m.png', sizingmethod='scale');}
}

<?php } ?>

<?php if ($browser == "ie6" || $browser == "ie7") { ?>

#s5_search .button, .button {
padding-left:2px;
padding-right:2px;
}

<?php } ?>

body {
background:#<?php echo $s5_bg ?>  url(<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_background.jpg) repeat-x top center;
}

<?php if(!$this->countModules('search') && !$this->countModules('top_menu')) { ?>
#s5_login_search_wrap {
padding-right:5px;
}
<?php } ?>

<?php if(!$this->countModules('register') && !$this->countModules('login') && !$this->countModules('top_menu')) { ?>
#s5_search {
margin-left:0px;
}
<?php } ?>

<?php if(!$this->countModules('breadcrumb')) { ?>
#s5_above_body_1_inner {
padding-top:16px;
}
<?php } ?>

<?php if(!$this->countModules('above_body_1') && $this->countModules('breadcrumb')) { ?>
#s5_content_wrap_inner {
background:none;
}
<?php } ?>

<?php if(!$this->countModules('above_body_1') && $this->countModules('breadcrumb')) { ?>
#s5_content_wrap_inner {
padding-top:0px;
}
<?php } ?>

<?php if($this->countModules('below_body_2') || $this->countModules('below_body_3') || $this->countModules('below_body_4') || $this->countModules('below_body_5')) { ?>
#s5_below_body_1 {
margin-bototm:14px;
}
<?php } ?>

#s5_navv ul li.active a.active, #s5_navv a:hover, #s5_navv a.sfhover, .s5_h3_first, #s5_bottom_wrap ul.menu ul a, #s5_right .module_round_box ul.menu #current a, #s5_left .module_round_box ul.menu #current a, #s5_left .module_round_box div ul.s5_am_innermenu a, #s5_right .module_round_box div ul.s5_am_innermenu a {
color:#<?php echo $s5_highlight_2 ?>;
}

#s5_navv ul li.active {
	background:#<?php echo $s5_highlight_2 ?> url(<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_menu_active.png) no-repeat top center;
}

#s5_navv ul li.active:hover, #s5_navv ul li.active.sfhover {
	background:#<?php echo $s5_highlight_2 ?> url(<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_menu_active_hover.png) no-repeat top center;
}

#s5_navv ul li ul li.active {
	background:none;
}

#s5_navv ul li:hover, #s5_navv ul li.sfhover, #s5_navv ul li ul li.active:hover, #s5_navv ul li ul li.active.sfhover {
	background:url(<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_menu_hover.png) no-repeat top center;
}

a, .contentheading, .componentheading, #cboxLoadedContent div.module h3, #s5_left div.module_round_box-light ul.menu a, #s5_right div.module_round_box-light ul.menu a {
color:#<?php echo $s5_highlight_1 ?>;
}

.s5_ts_active {
	background:#<?php echo $s5_highlight_1 ?> url(<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/images/s5_ts_l.png) no-repeat top left;
}

#s5_footer {
	border-bottom:solid 4px #<?php echo $s5_highlight_1 ?>;
}


</style> 

</head>

<body id="s5_body">



<div id="s5_top_bar">

</div>

<div id="s5_outer_wrap">

	<div id="s5_outer_wrap_inner" style="width:<?php echo $s5_body_width ?>px">
	
		<div id="s5_logo_wrap" style="width:<?php echo $s5_body_width ?>px">
		
		<a href="<?php echo $LiveSiteUrl;?>" style="position:absolute; float:left; width:320px; height:80px; margin-top:40px"></a>
		
			<?php if ($this->countModules("login") || $this->countModules("register") || $this->countModules("top_menu") || $this->countModules("search")) { ?>
			
				<div id="s5_login_search_wrap">
			
					<?php if ($this->countModules("login")) { ?>
						<div id="s5_login" class="s5box_login">
							<jdoc:include type="modules" name="login" style="title_only" />
						</div>
					<?php } ?>
				
					<?php if ($this->countModules("register")) { ?>
						<div id="s5_register" class="s5box_register">
							<jdoc:include type="modules" name="register" style="title_only" />
						</div>
					<?php } ?>
					
					<?php if ($this->countModules("top_menu")) { ?>
						<div id="s5_top_menu">
							<jdoc:include type="modules" name="top_menu" style="no_title" />
						</div>
					<?php } ?>
					
					<?php if ($this->countModules("search")) { ?>
						<div id="s5_search">
							<jdoc:include type="modules" name="search" style="no_title" />
						</div>
					<?php } ?>
					
				</div>
				
			<?php } ?>
			
		</div>
		
		<div id="s5_bottom_wrap">
		
			<div style="clear:both"></div>
			
				<?php if ($this->countModules("left")) { ?>
				
					<div id="s5_left" style="width:<?php echo $s5_left_width ?>px">
					<div id="s5_left_inner">
					
						<jdoc:include type="modules" name="left" style="round_box" />
					
					<div style="clear:both"></div>
					</div>
					</div>
					
				<?php } ?>
				
				<div id="s5_left_shadow"></div>
				
				<?php if ($this->countModules("right")) { ?>
				
					<div id="s5_right" style="width:<?php echo $s5_right_width ?>px">
					<div id="s5_right_inner">
					
						<jdoc:include type="modules" name="right" style="round_box" />
					
					<div style="clear:both"></div>
					</div>
					</div>
				
				<?php } ?>
				
				<div id="s5_right_shadow"></div>
				
				<div id="s5_middle" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width ?>px">
				<div id="s5_middle_inner">
				
					<?php if ($s5_menu  != "5") { ?>
			
						<div id="s5_menu">
							
							<div id="s5_navv">
												
								<?php mosShowListMenu($menu_name);	?>
									<?php if ($s5_menu  == "1") { ?>
										<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/s5_drop_in_no_moo_menu.js"></script>																		
									<?php } ?>
									<?php if ($s5_menu  == "2") { ?>
										<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/s5_fading_no_moo_menu.js"></script>																		
									<?php } ?>	
									<?php if ($s5_menu  == "3") { ?>
										<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/s5_scroll_down_no_moo_menu.js"></script>																		
									<?php } ?>	
									<?php if ($s5_menu  == "4") { ?>
										<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/s5_suckerfish.js"></script>																		
									<?php } ?>	
												
							</div>
							
						</div>
									
					<?php } ?>
					
					<?php if ($s5_menu  == "5") { ?>
					
						<div style="height:36px; width:100px; background:none; padding:0px; margin:0px; float:right"></div>
					
					<?php } ?>
					
					<div id="s5_content_wrap" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width ?>px">
					
						<?php if ($this->countModules("breadcrumb")) { ?>
						
							<div id="s5_breadcrumb_wrap" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width + 48 ?>px">
							
								<div id="s5_bread_l"></div>
								
								<div id="s5_bread_m" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width ?>px">
								
									<div id="s5_pathway">
								
										<jdoc:include type="modules" name="breadcrumb" style="no_title" />
										
									</div>
								
								</div>
								
								<div id="s5_bread_r"></div>
						
						
							</div>
						
						<?php } ?>
						
						<?php if ($this->countModules("above_body_1")) { ?>
						
							<div id="s5_above_body_1">
							<div id="s5_above_body_1_inner">
							
								<jdoc:include type="modules" name="above_body_1" style="xhtml" />
							
							<div style="clear:both"></div>
							</div>
							</div>
							
						<?php } ?>
						
					
						<div id="s5_content_wrap_inner_wrap">
						<div id="s5_content_wrap_inner">
						
							<?php if ($this->countModules("above_body_2")) { ?>
						
								<div id="s5_above_body_2">
								<div id="s5_above_body_2_inner">
								
									<jdoc:include type="modules" name="above_body_2" style="xhtml" />
								
								<div style="clear:both"></div>
								</div>
								</div>
							
							<?php } ?>
							
							<?php if($this->countModules('above_body_3') || $this->countModules('above_body_4') || $this->countModules('above_body_5') || $this->countModules('above_body_6')) { ?>

									<div id="s5_row1">
									<div id="s5_row1_inner">	
										
														<?php if($this->countModules('above_body_3')) { ?>
														<div id="s5_above_body_3_mod" style="width:<?php echo $top_row ?>">
														<div id="s5_above_body_3_inner_mod">
															<jdoc:include type="modules" name="above_body_3" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('above_body_4')) { ?>
														<div id="s5_above_body_4_mod" style="width:<?php echo $top_row ?>">
														<div id="s5_above_body_4_inner_mod">
															<jdoc:include type="modules" name="above_body_4" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('above_body_5')) { ?>
														<div id="s5_above_body_5_mod" style="width:<?php echo $top_row ?>">
														<div id="s5_above_body_5_inner_mod">
															<jdoc:include type="modules" name="above_body_5" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('above_body_6')) { ?>
														<div id="s5_above_body_6_mod" style="width:<?php echo $top_row ?>">
														<div id="s5_above_body_6_inner_mod">
															<jdoc:include type="modules" name="above_body_6" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														
														<div style="clear:both"></div>
										
									</div>
									<div style="clear:both"></div>
									</div>
							
							<?php } ?> 
							
							<div style="clear:both"></div>
							
							<?php 
								$s5_domain = $_SERVER['HTTP_HOST'];
								$s5_url = "http://" . $s5_domain . $_SERVER['REQUEST_URI'];

								$s5_frontpage = "yes";
														$s5_current_page = "";
														if (JRequest::getVar('view') == "frontpage") {
															$s5_current_page = "frontpage";
														}
														if (JRequest::getVar('view') != "frontpage") {
															$s5_current_page = "not_frontpage";
														}
														$s5_check_frontpage = strrpos($s5_url,"index.php");
														if ($s5_check_frontpage > 1) {
															$s5_current_page = "not_frontpage";
														}
														$s5_check_frontpage2 = strrpos($s5_url,"view=frontpage&Itemid=1");
														if ($s5_check_frontpage2 > 1) {
															$s5_current_page = "frontpage";
														}
														if ($s5_show_frontpage == "no" && $s5_current_page == "frontpage") {
															$s5_frontpage = "no";
														}
														 ?>

																
							<?php if ($s5_frontpage == "yes") { ?>
							
							<div id="s5_component_wrap">
							<div id="s5_component_wrap_inner">
							
								<?php if($this->countModules('inset')) { ?>
								<div id="s5_body_column" style="width:<?php echo $s5_body_width - $s5_right_width - $s5_inset_width - $s5_left_width - 118 ?>px">
								<?php } ?>
								<?php if(!$this->countModules('inset')) { ?>
								<div id="s5_body_column" style="width:<?php echo $s5_body_width - $s5_right_width - $s5_inset_width - $s5_left_width - 79 ?>px">
								<?php } ?>
								<div id="s5_body_column_inner">
						
									<jdoc:include type="message" />
									<jdoc:include type="component" />
									
								</div>
								</div>
								
								<?php if($this->countModules('inset')) { ?>
									
									<div id="s5_inset_column" style="width:<?php echo $s5_inset_width ?>px">
									<div id="s5_inset_column_inner">
									
										<jdoc:include type="modules" name="inset" style="xhtml" />
									
									</div>
									</div>
									
								<?php } ?>
								
								<div style="clear:both"></div>
							
							</div>
							</div>
							
							<?php } ?>
							
							<?php if ($this->countModules("below_body_1")) { ?>
						
								<div id="s5_below_body_1">
								<div id="s5_below_body_1_inner">
								
									<jdoc:include type="modules" name="below_body_1" style="xhtml" />
								
								<div style="clear:both"></div>
								</div>
								</div>
							
							<?php } ?>
							
							<?php if($this->countModules('below_body_2') || $this->countModules('below_body_3') || $this->countModules('below_body_4') || $this->countModules('below_body_5')) { ?>

									<div id="s5_row2">
									<div id="s5_row2_inner">	
										
														<?php if($this->countModules('below_body_2')) { ?>
														<div id="s5_below_body_2_mod" style="width:<?php echo $bot_row ?>">
														<div id="s5_below_body_2_inner_mod">
															<jdoc:include type="modules" name="below_body_2" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('below_body_3')) { ?>
														<div id="s5_below_body_3_mod" style="width:<?php echo $bot_row ?>">
														<div id="s5_below_body_3_inner_mod">
															<jdoc:include type="modules" name="below_body_3" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('below_body_4')) { ?>
														<div id="s5_below_body_4_mod" style="width:<?php echo $bot_row ?>">
														<div id="s5_below_body_4_inner_mod">
															<jdoc:include type="modules" name="below_body_4" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														<?php if($this->countModules('below_body_5')) { ?>
														<div id="s5_below_body_5_mod" style="width:<?php echo $bot_row ?>">
														<div id="s5_below_body_5_inner_mod">
															<jdoc:include type="modules" name="below_body_5" style="xhtml" />
															<div style="clear:both"></div>
														</div>
														</div>
														<?php } ?> 
														
														<div style="clear:both"></div>
										
									</div>
									<div style="clear:both"></div>
									</div>
							
							<?php } ?> 
							
							<div style="clear:both"></div>
						
						</div>
						</div>
					
					</div>
					
					<div style="clear:both"></div>
					
						<div id="s5_footer" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width ?>px">
						
							<div id="s5_footer_inner">
						
								<div id="s5_footer_text">
									<?php include("templates/touch_of_soul/footer.php"); ?>
								</div>
								<div id="s5_bottom_pos">
									<jdoc:include type="modules" name="bottom_menu" style="notitle" />
								</div>	
								
								<div style="clear:both"></div>
								
							</div>

						</div>
						
						<div style="clear:both"></div>

				</div>
				</div>
				
				<div style="clear:both"></div>
				
			</div>
		
	</div>
	
	<div style="clear:both"></div>
	
</div>

<?php if ($browser == "ie6" || $browser == "ie7") { ?>
<div style="height:56px; width:100px"></div>
<?php } ?>

	
	<?php if ($s5_tooltips  == "yes") { ?>
	<script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl;?>/templates/touch_of_soul/js/tooltips.js"></script>
	<?php } ?>
	
	<?php if($this->countModules('debug')) { ?>
			<jdoc:include type="modules" name="debug" style="xhtml" />
	<?php } ?>
	
	<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/templates/touch_of_soul/js/s5_effects.js"></script>
	

</body>

</html>